/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model;

/**
 *
 * @author Allan
 */
public class OrderLine
{
    private int orderLineID;
    private double unitPrice;
    private int amount;
    private Product product;
    private Order order;

    public OrderLine(int orderLineID, double unitPrice, int amount, Product product, Order order)
    {
        this.orderLineID = orderLineID;
        this.unitPrice = unitPrice;
        this.amount = amount;
        this.product = product;
        this.order = order;
    }

    public int getOrderLineID()
    {
        return orderLineID;
    }

    public double getUnitPrice()
    {
        return unitPrice;
    }

    public int getAmount()
    {
        return amount;
    }

    public Product getProduct()
    {
        return product;
    }

    public Order getOrder()
    {
        return order;
    }

    public void setOrderLineID(int orderLineID)
    {
        this.orderLineID = orderLineID;
    }

    public void setUnitPrice(double unitPrice)
    {
        this.unitPrice = unitPrice;
    }

    public void setAmount(int amount)
    {
        this.amount = amount;
    }

    public void setProduct(Product product)
    {
        this.product = product;
    }

    public void setOrder(Order order)
    {
        this.order = order;
    }
}
